# -*- coding: utf-8 -*-
#   暖灰棕褐协调风格（统一toolboxCss设计语言）
# @Time    ： 2024/8/15  19:05
# @Auther  ： 徐良
# File     :  warm_gray_coordinate_style.py

toolbar_style = """
QToolBar {
    background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, 
                                stop:0 #F4ECE5, 
                                stop:1 #EBDFD6);
    border-bottom: 1.8px solid #BB9A89;
    padding: 6px;
}

QToolButton {
    min-width: 52px;
    min-height: 28px; 
    padding: 6px;
    background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, 
                                stop:0 #F8F4F0, 
                                stop:1 #EDE2D9);
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
    font: 11pt "等线";
    color: #6D4C41;
}

QToolButton:hover {
    background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, 
                                stop:0 #EDE2D9, 
                                stop:1 #E2D3C9);
    border: 1.8px solid #A68673;
    color: #5B3E34;
}

QToolButton:pressed {
    background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, 
                                stop:0 #D3BDAF, 
                                stop:1 #C5A38F);
    border: 1.8px solid #7B5C4C;
}

QToolButton:checked {
    background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, 
                                stop:0 #C5A38F, 
                                stop:1 #AD8874);
    border: 1.8px solid #7B5C4C;
    color: white;
    font-weight: 600;
}
"""

date_edit_style = """
QDateEdit {
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    min-width: 120px;
    padding: 4px;
    background-color: #F8F4F0;
    selection-background-color: #AD8874;
    selection-color: white;
    color: #4A3B34;
    font: 11pt "等线";
}

QDateEdit:hover {
    border-color: #A68673;
    background-color: #F4ECE5;
}

QDateEdit:focus {
    border-color: #7B5C4C;
    background-color: #FFFFFF;
}

QDateEdit[readOnly="true"] {
    border: 1.8px dashed #A68673;
    background-color: #F4ECE5;
    color: #6D4C41;
    font-style: italic;
}

QDateEdit:disabled {
    border: 1.8px solid #DECCBF;
    background-color: #EBDFD6;
    color: #9A8673;
}

/* 右侧按钮样式 */
QDateEdit::up-button, QDateEdit::down-button {
    subcontrol-origin: border;
    subcontrol-position: top right;
    width: 20px;
    height: 20px;
    border-left: 1.8px solid #BB9A89;
    background-color: #EDE2D9;
    padding: 0;
}

QDateEdit::up-button {
    subcontrol-position: top right;
    border-top-left-radius: 4px;
}

QDateEdit::down-button {
    subcontrol-position: bottom right;
    border-bottom-left-radius: 4px;
}

/* 按钮悬停效果 */
QDateEdit::up-button:hover, QDateEdit::down-button:hover {
    background-color: #E2D3C9;
    border-left-color: #A68673;
}

/* 按钮箭头图标 */
QDateEdit::up-arrow {
    image: url(:/arrow/resource/arrow/up.png);
    width: 10px;
    height: 10px;
    filter: brightness(0) invert(0.4) sepia(0.5) saturate(2);
}

QDateEdit::down-arrow {
    image: url(:/arrow/resource/arrow/down.png);
    width: 10px;
    height: 10px;
    filter: brightness(0) invert(0.4) sepia(0.5) saturate(2);
}
"""

time_edit_style = """
QTimeEdit {
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    min-width: 120px;
    padding: 4px;
    background-color: #F8F4F0;
    selection-background-color: #AD8874;
    selection-color: white;
    color: #4A3B34;
    font: 11pt "等线";
}

QTimeEdit:hover {
    border-color: #A68673;
    background-color: #F4ECE5;
}

QTimeEdit:focus {
    border-color: #7B5C4C;
    background-color: #FFFFFF;
}

QTimeEdit[readOnly="true"] {
    border: 1.8px dashed #A68673;
    background-color: #F4ECE5;
    color: #6D4C41;
    font-style: italic;
}

QTimeEdit:disabled {
    border: 1.8px solid #DECCBF;
    background-color: #EBDFD6;
    color: #9A8673;
}

/* 右侧按钮样式 */
QTimeEdit::up-button, QTimeEdit::down-button {
    subcontrol-origin: border;
    subcontrol-position: top right;
    width: 20px;
    height: 20px;
    border-left: 1.8px solid #BB9A89;
    background-color: #EDE2D9;
    padding: 0;
}

QTimeEdit::up-button {
    subcontrol-position: top right;
    border-top-left-radius: 4px;
}

QTimeEdit::down-button {
    subcontrol-position: bottom right;
    border-bottom-left-radius: 4px;
}

/* 按钮悬停效果 */
QTimeEdit::up-button:hover, QTimeEdit::down-button:hover {
    background-color: #E2D3C9;
    border-left-color: #A68673;
}

/* 按钮箭头图标 */
QTimeEdit::up-arrow {
    image: url(:/arrow/resource/arrow/up.png);
    width: 10px;
    height: 10px;
    filter: brightness(0) invert(0.4) sepia(0.5) saturate(2);
}

QTimeEdit::down-arrow {
    image: url(:/arrow/resource/arrow/down.png);
    width: 10px;
    height: 10px;
    filter: brightness(0) invert(0.4) sepia(0.5) saturate(2);
}
"""

date_time_edit_style = """
QDateTimeEdit {
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    min-width: 200px;
    padding: 4px;
    background-color: #F8F4F0;
    selection-background-color: #AD8874;
    selection-color: white;
    color: #4A3B34;
    font: 11pt "等线";
}

QDateTimeEdit:hover {
    border-color: #A68673;
    background-color: #F4ECE5;
}

QDateTimeEdit:focus {
    border-color: #7B5C4C;
    background-color: #FFFFFF;
}

QDateTimeEdit[readOnly="true"] {
    border: 1.8px dashed #A68673;
    background-color: #F4ECE5;
    color: #6D4C41;
    font-style: italic;
}

QDateTimeEdit:disabled {
    border: 1.8px solid #DECCBF;
    background-color: #EBDFD6;
    color: #9A8673;
}

/* 右侧按钮样式 */
QDateTimeEdit::up-button, QDateTimeEdit::down-button {
    subcontrol-origin: border;
    subcontrol-position: top right;
    width: 20px;
    height: 20px;
    border-left: 1.8px solid #BB9A89;
    background-color: #EDE2D9;
    padding: 0;
}

QDateTimeEdit::up-button {
    subcontrol-position: top right;
    border-top-left-radius: 4px;
}

QDateTimeEdit::down-button {
    subcontrol-position: bottom right;
    border-bottom-left-radius: 4px;
}

/* 按钮悬停效果 */
QDateTimeEdit::up-button:hover, QDateTimeEdit::down-button:hover {
    background-color: #E2D3C9;
    border-left-color: #A68673;
}

/* 按钮箭头图标 */
QDateTimeEdit::up-arrow {
    image: url(:/arrow/resource/arrow/up.png);
    width: 10px;
    height: 10px;
    filter: brightness(0) invert(0.4) sepia(0.5) saturate(2);
}

QDateTimeEdit::down-arrow {
    image: url(:/arrow/resource/arrow/down.png);
    width: 10px;
    height: 10px;
    filter: brightness(0) invert(0.4) sepia(0.5) saturate(2);
}
"""

north_tab_widget_style = """
/* QTabWidget 基础样式 */
QTabWidget {
    background-color: #F8F4F0;
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
}

/* 选项卡栏样式 */
QTabWidget::tab-bar {
    alignment: left;
    padding-top: 4px;
}

/* 选项卡基础样式 */
QTabBar::tab {
    background-color: #EDE2D9;
    color: #6D4C41;
    padding: 8px 16px;
    border: 1.8px solid #BB9A89;
    border-bottom: none;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    margin-right: 2px;
    font: 11pt "等线";
}

/* 选中选项卡样式 */
QTabBar::tab:selected {
    background-color: #AD8874;
    color: white;
    border: 1.8px solid #7B5C4C;
    border-bottom: none;
    font-weight: 600;
}

/* 悬停选项卡样式 */
QTabBar::tab:hover {
    background-color: #E2D3C9;
    border-color: #A68673;
    color: #5B3E34;
}

/* 内容区域样式 */
QTabWidget::pane {
    border: 1.8px solid #BB9A89;
    border-radius: 0 6px 6px 6px;
    background-color: #F8F4F0;
    margin-top: -1.8px;
}
"""

main_tab_widget_style = """
QTabWidget {
    background-color: #F8F4F0;
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    margin-left: 5px;
}

QTabWidget::tab-bar {
    padding-top: 4px;
}

QTabBar::tab {
    background-color: #EDE2D9;
    color: #6D4C41;
    padding: 6px 14px;
    border: 1.8px solid #BB9A89;
    border-bottom: none;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    margin-right: 2px;
    font: 10pt "等线";
}

QTabBar::tab:selected {
    background-color: #AD8874;
    color: white;
    border: 1.8px solid #7B5C4C;
    border-bottom: none;
    font-weight: 600;
}

QTabBar::tab:hover {
    background-color: #E2D3C9;
    border-color: #A68673;
    color: #5B3E34;
}

QTabWidget::pane {
    border: 1.8px solid #BB9A89;
    border-radius: 0 6px 6px 6px;
    background-color: #F8F4F0;
    margin-top: -1.8px;
}
"""

button_style = """
QPushButton {
    /* 基础样式 */
    background-color: qlineargradient(
        spread: pad, x1: 0, y1: 0, x2: 1, y2: 1,
        stop: 0 #EDE2D9,
        stop: 1 #D3BDAF
    );
    border: 1.8px solid #BB9A89;
    color: #6D4C41;
    padding: 4px 12px;
    border-radius: 6px;
    font: 11pt "等线";
    text-align: center;
    min-width: 80px;
    min-height: 28px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
}

/* 悬停样式 */
QPushButton:hover {
    background-color: qlineargradient(
        spread: pad, x1: 0, y1: 0, x2: 1, y2: 1,
        stop: 0 #E2D3C9,
        stop: 1 #C5A38F
    );
    border: 1.8px solid #A68673;
    color: #5B3E34;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

/* 按下样式 */
QPushButton:pressed {
    background-color: qlineargradient(
        spread: pad, x1: 0, y1: 0, x2: 1, y2: 1,
        stop: 0 #C5A38F,
        stop: 1 #AD8874
    );
    border: 1.8px solid #7B5C4C;
    color: white;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 禁用状态 */
QPushButton:disabled {
    background-color: #EBDFD6;
    border: 1.8px solid #DECCBF;
    color: #9A8673;
    box-shadow: none;
}
"""

button_toolbox_style = """
QPushButton {
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    background-color: #EDE2D9;
    color: #6D4C41;
    font: 11pt "等线";
    padding: 6px 15px;
    text-align: left;
    padding-left: 30px;
    height: 30px;
    min-width: 120px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
}

QPushButton:hover {
    background-color: #E2D3C9;
    border: 1.8px solid #A68673;
    color: #5B3E34;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.15);
}

QPushButton:pressed {
    background-color: #C5A38F;
    border: 1.8px solid #7B5C4C;
    color: white;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

QPushButton::icon {
    padding-left: 8px;
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(0.4) sepia(0.5) saturate(2);
}
"""

tool_button_style = """
QToolButton {
    background-color: qlineargradient(
        spread: pad, x1: 0, y1: 0, x2: 1, y2: 1,
        stop: 0 #EDE2D9,
        stop: 1 #D3BDAF
    );
    border: 1.8px solid #BB9A89;
    color: #6D4C41;
    padding: 4px 8px;
    border-radius: 6px;
    font: 10pt "等线";
    min-width: 24px;
    min-height: 24px;
}

QToolButton:hover {
    background-color: qlineargradient(
        spread: pad, x1: 0, y1: 0, x2: 1, y2: 1,
        stop: 0 #E2D3C9,
        stop: 1 #C5A38F
    );
    border: 1.8px solid #A68673;
    color: #5B3E34;
}

QToolButton:pressed {
    background-color: qlineargradient(
        spread: pad, x1: 0, y1: 0, x2: 1, y2: 1,
        stop: 0 #C5A38F,
        stop: 1 #AD8874
    );
    border: 1.8px solid #7B5C4C;
    color: white;
}
"""

group_box_style = """
QGroupBox {
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    margin-top: 0.8em;
    font: bold 11pt "等线";
    color: #6D4C41;
    background-color: transparent;
    padding-top: 12px;
}

/* 标题样式 */
QGroupBox::title {
    subcontrol-origin: margin;
    subcontrol-position: top center;
    padding: 2px 12px;
    background-color: qlineargradient(
        spread: pad, x1: 0, y1: 0, x2: 1, y2: 1,
        stop: 0 #EDE2D9,
        stop: 1 #D3BDAF
    );
    color: #6D4C41;
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    font: bold 11pt "等线";
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
}
"""

check_box_style = """
QCheckBox {
    font: 11pt "等线";
    color: #4A3B34;
    padding: 6px;
    min-height: 24px;
}

QCheckBox::indicator {
    width: 18px;
    height: 18px;
    border: 1.8px solid #BB9A89;
    border-radius: 4px;
    background-color: #F8F4F0;
}

QCheckBox::indicator:checked {
    background-color: #AD8874;
    image: url(:/icons/check.png);
    image-position: center;
    image-repeat: no-repeat;
}

QCheckBox::indicator:hover {
    border: 1.8px solid #A68673;
    background-color: #F4ECE5;
}
"""

radio_button_style = """
QRadioButton {
    font: 11pt "等线";
    color: #4A3B34;
    margin: 8px;
}

QRadioButton::indicator {
    width: 18px;
    height: 18px;
    border: 1.8px solid #BB9A89;
    border-radius: 9px;
    background-color: #F8F4F0;
}

QRadioButton::indicator:checked {
    background-color: #AD8874;
}

QRadioButton::indicator:checked::indicator {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 5px;
    margin: 4px;
}

QRadioButton::indicator:hover {
    border-color: #A68673;
    background-color: #F4ECE5;
}
"""

line_edit_str_style = """
QLineEdit {
    background-color: #F8F4F0;
    border: 1.8px solid #BB9A89;
    color: #4A3B34;
    padding: 4px 8px;
    border-radius: 6px;
    font: 11pt "等线";
    min-width: 120px;
    min-height: 26px;
    selection-background-color: #AD8874;
    selection-color: white;
}

QLineEdit[readOnly="true"] {
    color: #666666;           /* 暗灰色文字 */
    background-color: #F0F0F0; /* 浅灰色背景 */
    border-color: #CCCCCC;     /* 中灰色边框 */
}

/* 获得焦点样式 */
QLineEdit:focus {
    border-color: #7B5C4C;
    background-color: #FFFFFF;
}

/* 禁用状态 */
QLineEdit:disabled {
    border-color: #DECCBF;
    color: #9A8673;
    background-color: #EBDFD6;
}
"""

spin_box_style = """
QSpinBox {
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    padding: 4px 6px;
    background-color: #F8F4F0;
    color: #4A3B34;
    font: 11pt "等线";
}

QSpinBox:hover {
    border: 1.8px solid #A68673;
    background-color: #F4ECE5;
}

QSpinBox:focus {
    border: 1.8px solid #7B5C4C;
    background-color: #FFFFFF;
}

QSpinBox::up-button {
    subcontrol-origin: border;
    subcontrol-position: top right;
    width: 20px;
    height: 14px;
    image: url(:/arrow/resource/arrow/up.png);
    background-color: #EDE2D9;
    border-left: 1.8px solid #BB9A89;
    border-bottom: 0.9px solid #BB9A89;
}

QSpinBox::up-button:hover {
    background-color: #E2D3C9;
    border-left-color: #A68673;
    border-bottom-color: #A68673;
}

QSpinBox::down-button {
    subcontrol-origin: border;
    subcontrol-position: bottom right;
    width: 20px;
    height: 14px;
    image: url(:/arrow/resource/arrow/down.png);
    background-color: #EDE2D9;
    border-left: 1.8px solid #BB9A89;
}

QSpinBox::down-button:hover {
    background-color: #E2D3C9;
    border-left-color: #A68673;
}
"""

combox_style = """
QComboBox {
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    padding: 4px 6px;
    background-color: #F8F4F0;
    color: #4A3B34;
    font: 11pt "等线";
}

QComboBox:focus {
    border: 1.8px solid #7B5C4C;
    background-color: #FFFFFF;
}

QComboBox::drop-down {
    subcontrol-origin: padding;
    subcontrol-position: top right;
    width: 24px;
    border-left: 1.8px solid #BB9A89;
    background-color: #EDE2D9;
}

QComboBox::drop-down:hover {
    background-color: #E2D3C9;
    border-left-color: #A68673;
}

QComboBox::down-arrow {
    image: url(:/arrow/resource/arrow/down.png);
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(0.4) sepia(0.5) saturate(2);
}

QComboBox QAbstractItemView {
    border: 1.8px solid #BB9A89;
    background-color: #F8F4F0;
    selection-background-color: #AD8874;
    selection-color: white;
    font: 11pt "等线";
    color: #4A3B34;
}

QComboBox QAbstractItemView::item:hover {
    background-color: #E2D3C9;
    color: #5B3E34;
}
"""

label1_style = """
QLabel {
    font: 75 20pt "等线";
    color: #6D4C41;
    border: none;
}
"""

label2_style = """
QLabel {
    font: 75 14pt "等线";
    color: #6D4C41;
    border: none;
}
"""

label3_style = """
QLabel {
    font: 75 11pt "等线";
    color: #4A3B34;
    border: none;
}
"""

plain_text_edit_style = """
QPlainTextEdit {
    background-color: #F8F4F0;
    color: #4A3B34;
    font-family: "等线";
    font-size: 11pt;
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    padding: 10px;
    selection-background-color: #AD8874;
    selection-color: white;
}

QPlainTextEdit:focus {
    border: 1.8px solid #7B5C4C;
    background-color: #FFFFFF;
}

QScrollBar:vertical {
    background: #EDE2D9;
    width: 12px;
    margin: 0px;
    border-radius: 6px;
}

QScrollBar::handle:vertical {
    background: #BB9A89;
    min-height: 24px;
    border-radius: 6px;
}

QScrollBar::handle:vertical:hover {
    background: #A68673;
}

QScrollBar::add-line:vertical,
QScrollBar::sub-line:vertical {
    background: none;
}

QScrollBar::add-page:vertical,
QScrollBar::sub-page:vertical {
    background: none;
}
"""

frame_style = """
QFrame {
    background-color: #F8F4F0;
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    padding: 6px;
}

QFrame:hover {
    border: 1.8px solid #A68673;
}
"""

tree_widget_style = """
QTreeWidget {
    background-color: #F8F4F0;
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    selection-background-color: #AD8874;
    selection-color: white;
    alternate-background-color: #F4ECE5;
    font: 11pt "等线";
    color: #4A3B34;
}

/* 单元格样式 */
QTreeView::item {
    padding: 4px;
}

/* 选中项样式 */
QTreeView::item:selected {
    background-color: #AD8874;
    color: white;
    border-radius: 3px;
}

QHeaderView::section {
    background-color: qlineargradient(
        spread: pad, x1: 0, y1: 0, x2: 1, y2: 1,
        stop: 0 #EDE2D9,
        stop: 1 #D3BDAF
    );
    color: #6D4C41;
    min-height: 30px;
    padding: 4px;
    border: 1px solid #BB9A89;
    text-align: center;
    font: 11pt "等线";
    font-weight: 600;
}

QTreeView::item:hover {
    background-color: #E2D3C9;
    color: #5B3E34;
}

QScrollBar:vertical {
    background: #EDE2D9;
    width: 12px;
    margin: 0px;
    border-radius: 6px;
}

QScrollBar::handle:vertical {
    background: #BB9A89;
    min-height: 24px;
    border-radius: 6px;
}

QScrollBar::handle:vertical:hover {
    background: #A68673;
}
"""

tableview1_style = """
QTreeView {
    background-color: #F8F4F0;
    alternate-background-color: #F4ECE5;
    selection-background-color: #AD8874;
    selection-color: white;
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    font: 11pt "等线";
    color: #4A3B34;
}

QHeaderView::section {
    background-color: qlineargradient(
        spread: pad, x1: 0, y1: 0, x2: 1, y2: 1,
        stop: 0 #EDE2D9,
        stop: 1 #D3BDAF
    );
    color: #6D4C41;
    font-size: 11pt;
    padding: 6px;
    border: 1px solid #BB9A89;
    text-align: center;
    font-weight: 600;
}

QTreeView::item {
    padding: 5px;
    border: none;
    border-radius: 3px;
}

QTreeView::item:hover {
    background-color: #E2D3C9;
    color: #5B3E34;
}

QTreeView::item:selected {
    background-color: #AD8874;
    color: white;
}

QScrollBar:vertical {
    background: #EDE2D9;
    width: 12px;
    margin: 0px;
    border-radius: 6px;
}

QScrollBar::handle:vertical {
    background: #BB9A89;
    min-height: 24px;
    border-radius: 6px;
}
"""

treeview_style = """
QTreeView {
    background-color: #F8F4F0;
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    selection-background-color: #AD8874;
    selection-color: white;
    alternate-background-color: #F4ECE5;
    font: 11pt "等线";
    color: #4A3B34;
}

QTreeView::item {
    padding: 4px;
}

/* 选中项样式 */
QTreeView::item:selected {
    background-color: #AD8874;
    color: white;
    border-radius: 3px;
}

QTreeView::branch {
    background-color: transparent;
}

QTreeView::branch:open:has-children {
    image: url(:/icons/branch-open.png);
    filter: brightness(0) invert(0.4) sepia(0.5) saturate(2);
}

QTreeView::branch:closed:has-children {
    image: url(:/icons/branch-closed.png);
    filter: brightness(0) invert(0.4) sepia(0.5) saturate(2);
}

QHeaderView::section {
    background-color: qlineargradient(
        spread: pad, x1: 0, y1: 0, x2: 1, y2: 1,
        stop: 0 #EDE2D9,
        stop: 1 #D3BDAF
    );
    color: #6D4C41;
    min-height: 30px;
    padding: 4px;
    border: 1px solid #BB9A89;
    text-align: center;
    font: 11pt "等线";
    font-weight: 600;
}

QScrollBar:vertical {
    background: #EDE2D9;
    width: 12px;
    margin: 0px;
    border-radius: 6px;
}

QScrollBar::handle:vertical {
    background: #BB9A89;
    min-height: 24px;
    border-radius: 6px;
}
"""

listWidget_style = """
QListWidget {
    background-color: #F8F4F0;
    alternate-background-color: #F4ECE5;
    selection-background-color: #AD8874;
    selection-color: white;
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    font: 11pt "等线";
    color: #4A3B34;
}

QListWidget::item {
    padding: 6px;
    border: none;
    border-radius: 3px;
}

QListWidget::item:hover {
    background-color: #E2D3C9;
    color: #5B3E34;
}

QListWidget::item:selected {
    background-color: #AD8874;
    color: white;
}

QListWidget QScrollBar:vertical {
    width: 12px;
    margin: 0px;
    border-radius: 6px;
    background: #EDE2D9;
}

QListWidget QScrollBar::handle:vertical {
    background: #BB9A89;
    border-radius: 6px;
    min-height: 24px;
}

QListWidget QScrollBar::handle:vertical:hover {
    background: #A68673;
}

QListWidget QScrollBar::add-line:vertical, 
QListWidget QScrollBar::sub-line:vertical {
    height: 0px;
}

QListWidget QScrollBar::add-page:vertical, 
QListWidget QScrollBar::sub-page:vertical {
    background: none;
}
"""

# 保持原toolboxCss不变（作为风格基准）
toolboxCss = """
QToolBox {
    background: #F4ECE5;
    border: none;
}

/* 标签：增大高度 + 宽松内边距 + 丝绸渐变 */
QToolBox::tab {
    min-height: 60px;             /* 提高高度，保证字体和图标完整显示 */
    padding: 14px 16px;           /* 上下左右内边距更舒适 */
    background: qlineargradient(
        x1:0, y1:0, x2:1, y2:1,
        stop:0 #F4ECE5,
        stop:0.45 #EBDFD6,
        stop:1 #DECCBF
    );
    border: 1.8px solid #BB9A89;
    border-radius: 6px;
    margin: 2px 4px;              /* 减小 margin 避免裁剪 */
    font: 13pt "等线";             /* 字号更大，更清晰 */
    font-weight: normal;
    color: #6D4C41;
    qproperty-iconSize: 28px;      /* 图标大小适中 */
}

/* Hover 效果：柔光提亮 */
QToolBox::tab:hover {
    background: qlineargradient(
        x1:0, y1:0, x2:1, y2:1,
        stop:0 #EDE2D9,
        stop:0.45 #E2D3C9,
        stop:1 #D3BDAF
    );
    border-color: #A68673;
    color: #5B3E34;
}

/* Selected 标签：深色柔光 + 白字 */
QToolBox::tab:selected {
    min-height: 60px;
    padding: 14px 16px;
    background: qlineargradient(
        x1:0, y1:0, x2:1, y2:1,
        stop:0 #C5A38F,
        stop:0.45 #AD8874,
        stop:1 #8A6A57
    );
    border: 1.8px solid #7B5C4C;
    border-radius: 6px;
    font: 13pt "等线";
    font-weight: 600;
    color: white;
}

/* 内容区域 */
QToolBox QWidget {
    background: #F8F4F0;
    font: 11pt "等线";             /* 内容字体稍大，提升可读性 */
    color: #4A3B34;
    border: none;
    padding: 4px;                  /* 内容区域留白 */
}
"""